home *** CD-ROM | disk | FTP | other *** search
- /*************************************************************************************************
- *
- *
- * MacZapp -- a standard Mac application template. prototype header file
- *
- *
- *************************************************************************************************/
-
- #define kFileMenu 129
-
- enum
- {
- kItemChooseSlides = 1,
- kItemOptions,
- kItemGo = 4,
- kItemStop,
- kItemStartOver,
- kItemQuit = 8
- };
-
-
- void InitialiseTheApp(void);
- void RunTheApp(void);
- void QuitTheApp(void);
- void CheckCanRun(void);
-
- void HandleTheEvent(EventRecord *theEvent);
- void HandleMouseEvent(EventRecord *theEvent);
- void HandleMenuSelection(long mSelect);
- void HandleKeypress(WindowPtr theWindow,char keyChar);
-
- void OpenNewWindow(short windowResID);
- void ClickTheWindow(WindowPtr theWindow,Point clickLocation);
- void DrawTheWindow(WindowPtr theWindow);
-
-
-
- Boolean ChooseFolder(FSSpec* folderSpec);
- void CopyPString(ConstStr255Param srcString,Str255 destString);
- void ConcatPStrings(Str255 first,ConstStr255Param second);
-
- void StartSlideshow();
- void RunSlideshow();
- void StopSlideshow();
- void ResetSlideshow();
- PicHandle OpenPICT(short refNum);
- PicHandle OpenJPEG(short refNum);
- PicHandle OpenTIFF(short refNum);
- PicHandle OpenGIF(short refNum);
- short FSpCountFiles(FSSpec* aFolderSpec);
- void SetUpNextSlideFile();
- void OpenNextFile();
- void DisplayPicture(PicHandle thePic);
- void DisplayPictureOldWay(PicHandle thePic);
-
- void CentreRects(Rect *rect1,Rect *rect2);
- Boolean DoOptionsDialog();
-
- OSErr ConvertFromJFIF(StringPtr name,short originalFile,PicHandle *thePicture);
- OSErr ConvertTIFFToPICT(FSSpec *theFile,PicHandle *thePicture);
- OSErr ConvertGIFtoPICT(FSSpec *theFile,PicHandle *thePicture);
-
- void RestorePrefs();
- void SavePrefs();
-
- void DoAboutBox();
- void SetSlideWindowSize(WindowPtr theWindow);
- void DoOptions();
- void SetUpRandomList();
-
-
-
-
- #define Min(a,b) ((a) < (b))? (a) : (b)
- #define Max(a,b) ((a) > (b))? (a) : (b)
-
- #define ABS(x) ((x) < 0)? -(x) : (x)
-